<html>
<head><meta charset="utf-8"><title>full path in lint suggestion? · clippy · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/index.html">clippy</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/full.20path.20in.20lint.20suggestion.3F.html">full path in lint suggestion?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="213704969"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/full%20path%20in%20lint%20suggestion%3F/near/213704969" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> boxdot <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/full.20path.20in.20lint.20suggestion.3F.html#213704969">(Oct 18 2020 at 12:48)</a>:</h4>
<p>Should I use a fully qualified path to a replacement function in suggestion or just the function name? Using the function name would break the code as long there is not automatically added <code>use</code> by cargo fix.</p>



<a name="213710748"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/full%20path%20in%20lint%20suggestion%3F/near/213710748" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> flip1995 <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/full.20path.20in.20lint.20suggestion.3F.html#213710748">(Oct 18 2020 at 15:14)</a>:</h4>
<p>normally we use the fully qualified path in the suggestion.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>